FaceInfo

interface FaceInfo

Represents structured information about a detected human face, typically obtained from a computer vision or facial analysis system.

This interface provides access to various attributes of a detected face, such as its tracking identifier, estimated demographics (age, gender), and detected facial expressions or states (smile, blink).

Instances of FaceInfo are usually provided by services or listeners that process camera input for face detection and analysis. The data can be used for audience measurement, interactive content triggering, or personalized experiences.

Note that the accuracy and availability of each attribute may vary depending on the underlying face detection technology and environmental conditions (e.g., lighting, face orientation).

See also

// Ensure GenderType enum is well-documented

Functions

Link copied to clipboard
abstract fun getAge(): Int
Gets the estimated age of the person whose face has been detected.
Link copied to clipboard
abstract fun getBlink(): Boolean
Indicates whether the detected face's eyes are currently determined to be blinking.
Link copied to clipboard
abstract fun getGender(): GenderType
Gets the estimated gender of the person whose face has been detected.
Link copied to clipboard
abstract fun getSmile(): Int
Gets the intensity or likelihood of a smile being detected on the face.
Link copied to clipboard
abstract fun getTrackingId(): Int
Gets a unique identifier assigned to a detected face for tracking purposes.
Link copied to clipboard
abstract fun getTrackingTime(): Int
Gets the duration for which the face with the current getTrackingId has been continuously tracked.